<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/static/index/index/css/style.css">
    <link href="/static/index/index/css/layui.css" type="text/css" rel="stylesheet" />
    <link href="/static/layui/layui/css/layui.css" type="text/css" rel="stylesheet" />
    <link href="/static/layui/layui/css/layui.mobile.css" type="text/css" rel="stylesheet" />
    <link href="/static/index/index/css/common.css" type="text/css" rel="stylesheet" />
    <link href="/static/index/index/css/index.css" type="text/css" rel="stylesheet" />
    <link href="/static/index/index/css/modules/code.css" type="text/css" rel="stylesheet" />
</head>
<style>
    .layui-upload-list img {
        width: 190px;
        height: 180px;
        margin-left: 5px;
    }

    .layui-input-block {
        min-height: 36px;
        margin-top: 50px;
    }

    .a1 {
        width: 100%;
        height: 50px;
        font-size: 22px;
        padding: 0 0 0 10px;
    }

    .cont_table_cont_name_textarea {
        width: 75%;
        height: 100px;
        line-height: 24px;
        float: left;
        margin-left: 2.5%;
    }
</style>

<body>
    <div class="top">

        <div class="top_title">

            滨州市数据汇聚平台

        </div>

        <div class="top_user">

            <div class="top_user_f5">

                <img src="__STATIC__/index/img/f5.png" alt="">

            </div>

            <div class="top_user_userphoto">
                {empty name="admin"}
                {else /}
                <img src="__STATIC__/index/img/uesrphoto.png" alt="">
                {/empty}


            </div>

            <div class="top_user_text">
                {empty name="admin"}
                <a href="{:url('index/login')}">登入</a>
                {else /}
                欢迎，{$admin}
                {/empty}
            </div>

            <div class="top_user_select">

                <select name="" id="">

                </select>

            </div>
            {empty name="admin"}

            {else /}
            <div class="top_user_tuichu">

                <img src="__STATIC__/index/img/tuichu.png" alt="">

            </div>

            <div class="top_user_text">

                <a href="javascript:;" id="logon">退出</a>




            </div>
            {/empty}
        </div>

    </div>
    <div class="cont">
        <div class="banner">
            <div class="banner_text">
                数据汇聚 数据分析 数据挖掘 数据感知
            </div>
        </div>
        <div class="cont_table">
            <div class="cont_table_title">
                <div class="cont_table_title_text">
                    <!--<span>开发区</span>-->
                </div>
                <div class="cont_table_title_btn">
                    <div class="cont_table_title_btn_l">
                        待填报
                    </div>
                    <div class="cont_table_title_btn_l">
                        历史填报
                    </div>
                </div>
            </div>
            <form action="" id="admin">
                <div class="cont_table_cont">
                    <div class="cont_table_cont_name">
                        <div class="cont_table_cont_name_text">
                            项目名称
                        </div>
                        <div class="cont_table_cont_name_input">
                            <input type="text" name="name">
                        </div>
                    </div>
                    <div class="cont_table_cont_name">
                        <div class="cont_table_cont_name_text">
                            建设单位
                        </div>
                        <div class="cont_table_cont_name_input">
                            <input type="text" name="danwei">
                        </div>
                    </div>
                    <div class="cont_table_cont_name">
                        <div class="cont_table_cont_name_text">
                            总投资
                        </div>
                        <div class="cont_table_cont_name_input">
                            <input type="text" name="touzi">
                        </div>
                    </div>
                    <div class="cont_table_cont_name">
                        <div class="cont_table_cont_name_text">
                            2020年计划投资
                        </div>
                        <div class="cont_table_cont_name_input">
                            <input type="text" name="jihua">
                        </div>
                    </div>
                    <div class="cont_table_cont_name">
                        <div class="cont_table_cont_name_text">
                            2020年完成投资
                        </div>
                        <div class="cont_table_cont_name_input">
                            <input type="text" name="wancheng">
                        </div>
                    </div>
                    <div class="cont_table_cont_name">
                        <div class="cont_table_cont_name_text">
                            年度建设计划
                        </div>
                        <div class="cont_table_cont_name_input">
                            <input type="text" name="jianshe">
                        </div>
                    </div>

                    <div class="cont_table_cont_name">
                        <div class="cont_table_cont_name_text">
                            选择报送人
                        </div>
                        <div class="cont_table_cont_name_input" style="border: 1px solid;">
                            <select name="interest" class="a1">
                                <option value="">请选择</option>
                                {volist name="list" id="vo"}
                                <option value="{$vo.id}">{$vo.number}</option>
                                {/volist}
                            </select>
                        </div>
                    </div>
                    <div class="cont_table_cont_name">
                        <div class="cont_table_cont_name_text">

                        </div>
                        <div class="cont_table_cont_name_input">
                        </div>
                    </div>

                    <div class="cont_table_cont_gongzuoliang" style="margin-top: 50px;">
                        <div class="cont_table_cont_name_text1">
                            截止8月底完成实物工作量
                        </div>
                        <div class="cont_table_cont_name_textarea">
                            <textarea name="gongzuo" id="" cols="47" rows="6" style="padding: 10px 10px 10px 10px;"></textarea>
                        </div>
                    </div>
                    <div class="cont_table_cont_gongzuoliang">
                        <div class="cont_table_cont_name_text1">
                            专班帮包情况
                        </div>
                        <div class="cont_table_cont_name_textarea">
                            <textarea name="bang" id="" cols="47" rows="6" style="padding: 10px 10px 10px 10px;"></textarea>
                        </div>
                    </div>
                    <div class="cont_table_cont_gongzuoliang">
                        <div class="cont_table_cont_name_text1">
                            项目存在问题
                        </div>
                        <div class="cont_table_cont_name_textarea">
                            <textarea name="wenti" id="" cols="47" rows="6" style="padding: 10px 10px 10px 10px;"></textarea>
                        </div>
                    </div>
                    <!--  -->
                    <div class="img-box full">
                        <section class=" img-section">
                            <p class="up-p">进展照片：</p>
                            <div class="z_photo upimg-div clear">
                                <section class="fl" style="position: relative;">
                                    <button type="button" id="test2">
                                        <img src="/static/index/index/img/a11.png" class="add-img" style="width: 190px;height: 180px;">
                                    </button>
                                    <div class="layui-upload-list" id="demo2"></div>
                                    <!-- <input type="file" name="file" id="file" class="file" value="" accept="image/jpg,image/jpeg,image/png,image/bmp" multiple /> -->
                                </section>
                            </div>
                        </section>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="admin">立即提交</button>
                        </div>
                    </div>
                </div>
                <!-- <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
                    <legend>上传多张图片</legend>
                </fieldset>

                <div class="layui-upload">
                    <button type="button" class="layui-btn" id="test2">多图片上传</button>
                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                        预览图：
                        <div class="layui-upload-list" id="demo2"></div>
                    </blockquote>
                </div> -->
            </form>
            <aside class="mask works-mask">
                <div class="mask-content">
                    <p class="del-p">您确定要删除作品图片吗？</p>
                    <p class="check-p"><span class="del-com wsdel-ok">确定</span><span class="wsdel-no">取消</span></p>
                </div>
            </aside>

        </div>
    </div>
    </div>
</body>
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script src="/static/layui/layui/layui.js"></script>
<script src="/static/layui/layui/layui.all.js"></script>
<script src="/static/index/index/js/imgUp.js"></script>

<script>
    //多图片上传
    layui.use('upload', function() {

        var $ = layui.jquery,

            upload = layui.upload;

        //拖拽上传

        upload.render({

            elem: '#test2',

            url: "{:url('index/upload')} " //改成您自己的上传接口

                ,

            multiple: true,

            before: function(obj) {

                //预读本地文件示例，不支持ie8

                obj.preview(function(index, file, result) {

                    $('#demo2').append('<img src="' + result + '" alt="' + file.name +

                        '" class="layui-upload-img">')

                });

            },

            done: function(res) {

                $('#demo2').append('<input type="hidden" value="' + res.msg + '" name="imgs[]">')

            }

        });

    });
</script>
<script>
    layui.use(['layer', 'form'], function() {
        var layer = layui.layer,
            $ = layui.jquery,
            form = layui.form;
        $(window).on('load', function() {
            form.on('submit(admin)', function(data) {
                $.ajax({
                    url: "{:url('index/index/listt')}",
                    data: $('#admin').serialize(),
                    type: 'post',
                    async: false,
                    success: function(arr) {
                        if (arr.code == 1) {
                            location.href = arr.url;
                        } else {
                            layer.msg(arr.msg);
                        }
                    }
                })
                return false;
            });
        });
    });
</script>

</html>